package com.mathdroid.model.abilities.specs.sniper;

import com.mathdroid.model.abilities.Ability;
import com.mathdroid.model.enums.EDmgType;

public final class OverloadShot extends Ability {

	/**
	 * Generated UID.
	 */
	private static final long serialVersionUID = -100025513621863302L;

	public OverloadShot() {
		this.setName("Overload Shot");
		this.setIconName("fearsomecry");
		this.setResource("Energy");
		this.setCost(17d);
		this.setDirectDamageType(EDmgType.ENERGY);
		
		this.setStandardHealthPercentMax(0.124);
		this.setStandardHealthPercentMin(0.124);	
		this.setAmountModifierPercent(-0.17);
		this.setCoefficient(1.24);
		
		this.setTrainableLevel(8);
	}
	
	@Override
	public String getDescription() {
		return "Blasts a target for " + this.getMinDirect() + " - " 
			+ this.getMaxDirect() + " weapon damage.";
	}

	@Override
	public double getMinPeriodic() {
		return 0d;
	}

	@Override
	public double getMaxPeriodic() {
		return 0d;
	}

	@Override
	public double getMinDirect() {
		return
			this.getAmountModifierPercent() 
			* this.getCharStats().getRangedDamagePrimaryMin()
		
			+ this.getCoefficient() 
			* this.getCharStats().getTotalBonusDamageTechForce()
		
			+ this.getStandardHealthPercentMin() 
			* this.getStdDmg();
	}

	@Override
	public double getMaxDirect() {
		return
			this.getAmountModifierPercent() 
			* this.getCharStats().getRangedDamagePrimaryMax()
		
			+ this.getCoefficient() 
			* this.getCharStats().getTotalBonusDamageTechForce()
		
			+ this.getStandardHealthPercentMax() 
			* this.getStdDmg();
	}

}
